package visitor;

public class client {
    public static void main(String[] args) {
        File studyFile = new StudyFile("Python学习资料");
        File workFile = new WorkFile("旅游项目文件");


        ObjectStructure objectStructure = new ObjectStructure();
        objectStructure.add(studyFile);
        objectStructure.add(workFile);

        Folder studyFolder = new StudyFolder();
        Folder workFolder = new WorkFolder();

        objectStructure.action(studyFolder);
        objectStructure.action(workFolder);
    }
}
